<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>

  <body>
    <div id="app">
      <button @click="say">click1</button>
      <button @click="say($event)">click1</button>
    </div>
    <script type="module">
      import { createApp, ref, reactive, computed } from "./vue.esm-browser.js";
      const app = createApp({
        setup() {
          function say(x) {
            console.log(x);
          }
          return { say };
        },
      });

      app.mount("#app"); //挂载
    </script>
  </body>
</html>
